package com.example.attendancesystem.Filter;/*
package com.example.demo.Filter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

*/
/**
 *Filter(过滤器) 与 Interceptor(拦截器) 不能同时使用
 *//*

@Configuration
public class WebConfig {
    @Autowired
    private MyFilter myFilter;
    
    @Bean
    public FilterRegistrationBean MyFilter(){
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        filterRegistrationBean.setFilter(myFilter);
        List<String> urls = new ArrayList<>();
        urls.add("");
        filterRegistrationBean.setUrlPatterns(urls);
        return filterRegistrationBean;
    }
}
*/
